//
// Created by ooo on 2024/2/1.
//


//
// Created by ooo on 2024/1/31.
//


class Node {
public:
    int Data;
    Node *Next;

    explicit Node(int data) {
        Data = data;
    }
};

class List {
private:


public:
    Node *_header;
    Node *_footer;
//    Node<T> Current;

    explicit List(int data) {
        Node *node;
        node->Data = data;
        _header = node;
        _footer = node;
    }

//
    void Add(int data) {
        Node* node;
        node->Data = data;
        _footer->Next = node;
        _footer = node;
    }

};

